package nongchang.kuaijiecaifu.com.ncapp_android.retrofit.data;

import java.util.ArrayList;
import java.util.List;

import nongchang.kuaijiecaifu.com.ncapp_android.retrofit.good.BasketCart;
import nongchang.kuaijiecaifu.com.ncapp_android.retrofit.good.HomeItemCart;

/**
 * Created by Administrator on 2016/6/7 0007.
 */
public class ChildCartManager {
    public static ArrayList<HomeItemCart> cartList = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList1 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList2 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList3 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList4 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList5 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList6 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList7 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList8 = new ArrayList<>();
    public static ArrayList<HomeItemCart> cartList9 = new ArrayList<>();
    public ChildCartManager() {
        for (int i = 1; i <= 5; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价梨子" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList.add(product);
        }

        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价哈哈" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList1.add(product);
        }
    for (int i = 1; i <= 3; i++) {
        HomeItemCart product = new HomeItemCart();
        product.one_price = i;
        product.num = 1;
        product.isSelect = true;
        product.title = "特价赞子" + i;
        product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
        product.total_money = i;
        ChildCartManager.cartList2.add(product);
    }
        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价锤子" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList3.add(product);
        }
        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价夏天" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList4.add(product);
        }
        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价春天" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList5.add(product);
        }
        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价狮子" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList6.add(product);
        }
        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价熊猫" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList7.add(product);
        }
        for (int i = 1; i <= 3; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价白兔" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList8.add(product);
        }
        for (int i = 1; i <= 5; i++) {
            HomeItemCart product = new HomeItemCart();
            product.one_price = i;
            product.num = 1;
            product.isSelect = true;
            product.title = "特价苹果" + i;
            product.image = "http://365jia.cn/uploads/news/folder_15948/images/10%20.jpg";
            product.total_money = i;
            ChildCartManager.cartList9.add(product);
        }
}

//    public void setUpdate(int position, int num) {
//        cartList.get(position).num = num;
//        cartList.get(position).total_money = cartList.get(position).one_price * num;
//    }
}
